package com.ebei.admin.model.dto;

import com.ebei.admin.model.entity.SysOrg;
import lombok.Data;

import java.util.List;

/**
 * 用于园区-企业-项目 的层级关系
 */
@Data
public class OrgRelation {
    private Integer orgId;
    private String name;
    private Integer type;
    private List<OrgRelation> children;

    public OrgRelation(){

    }

    public OrgRelation(SysOrg sysOrg){
        this.orgId = sysOrg.getOrgId();
        this.name = sysOrg.getName();
        this.type = sysOrg.getType();
    }
}
